package com.daqsoft.dao.project;

import com.daqsoft.data.project.Attachment;
import com.daqsoft.data.project.Project;
import com.daqsoft.data.project.Task;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * 文件管理数据层
 * @author 周麟东 on 10:47
 */

public interface AttachmentDao extends JpaRepository<Attachment,Integer>{

    List<Attachment> getAttachmentByTask(Task task);

    List<Attachment> getByProjectAndProjectFile(Project project , Boolean projectFile);

}
